fix(explore): hide value input for unary filter operators#39924
Open
massucattoj wants to merge 1 commit intoapache:masterfrom
Open
fix(explore): hide value input for unary filter operators#39924massucattoj wants to merge 1 commit intoapache:masterfrom
massucattoj wants to merge 1 commit intoapache:masterfrom
Conversation
Contributor
Code Review Agent Run #154654Actionable Suggestions - 0Additional Suggestions - 1
Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SUMMARY
In the Explore filter popover (Simple tab), when a unary operator was selected
(
IS NULL,IS NOT NULL,IS TRUE,IS FALSE), the value input below theoperator dropdown was rendered in a disabled (grayed-out) state instead of
being hidden. Disabled inputs that can never be interacted with create visual
noise and confuse users about what is required to complete the filter.
This change hides the value control entirely whenever the selected operator
appears in
DISABLE_INPUT_OPERATORS, so only the column and operator fieldsare shown for unary operators.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before:

After:

TESTING INSTRUCTIONS
birth_namesor anydataset).
+ Add filter.Is null,Is not null,Is true, orIs false.all (previously it rendered as a disabled/grayed input).
Equal to,In) shouldrestore the value input.
Automated coverage: see four new tests in
AdhocFilterEditPopoverSimpleTabContent.test.tsxasserting that the valueinput is not in the document for each unary operator.
ADDITIONAL INFORMATION